Skip to content

Conversation

@monfera
Copy link
Member

@monfera monfera commented Sep 27, 2016

Without this change, e.g. a font family change will yield equality of ticks, therefore a font family update will not lead to a change to what's rendered.

a.fontColor !== b.fontColor ||
a.fontSize !== b.fontSize ||
a.dx !== b.dx ||
a.dy !== b.dy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lovely fix.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit repetitive but it's in a potentially perf critical code part - e.g. now runs on each hover move - and there may be internal properties too so I ended up not JSON.stringifying it or adding a loop on Object.keys

@bpostlethwaite bpostlethwaite merged commit a70baaa into gl-vis:master Sep 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants